package com.wangzhixuan.apiController;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wangzhixuan.commons.base.ApiBaseController;
import com.wangzhixuan.commons.constant.ApiCode;
import com.wangzhixuan.service.IRankService;


/**
 * 自动排名功能
 * @author Leo
 *
 */
@Controller
@RequestMapping("/api")
public class AutoRankController extends ApiBaseController{
	    
	@Autowired public  IRankService rankService;
	    
    @RequestMapping("/auto/rank")
    @ResponseBody
	public  Object TotalOnTimeNum(){
    	Boolean b = rankService.autoRank();
    	return renderSuccess(ApiCode.CODE_200, "成功");
	}
}
